<template>
  <div class="header">
    <div class="header-inner">
      <img src="../assets/cnodejs.svg" alt="" />
      <ul class="navBar">
        <li><a href="">首页</a></li>
        <li><a href="">新手入门</a></li>
        <li><a href="">API</a></li>
        <li><a href="">关于</a></li>
        <li><a href="">注册</a></li>
        <li><a href="">登录</a></li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "Header",
};
</script>

<style scoped>
.header {
  width: 100%;
  height: 50px;
  background: #444;
  display: flex;
}
@media (max-width: 500px) {
  .header {
    height: 90px;
  }
  .header-inner {
    flex-direction: column;
    padding: 16px 20px;
  }
  li {
    white-space: nowrap;
  }
}
.header-inner {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
img {
  max-width: 120px;
  margin-top: -5px;
}
.navBar {
  display: flex;
  font-size: 13px;
  color: #ccc;
}
li {
  padding: 0 15px;
  display: inline-block;
}
</style>